import request from '../../utils/request.js'

//获取学生列表
export const getStudentListAPI=(params)=>{
  return request({
    url:'/teacher/student/page',
    method:'get',
    params:params
  })
}
//获取编辑学生的信息
export const getUpdateStudentInfoAPI=(id)=>{
  return request({
    url:'/teacher/student/id',//待定
    method:'get',
    params:{
      id:id
    }
  })
}
//提交修改后的学生信息
export const submitUpdateStudentInfoAPI=(params)=>{
  return request({
    url:'/teacher/student',
    method:'put',
    data:params
  })
}
//单个删除学生
export const deleteStudentAPI=(id)=>{
  return request({
    url:'/teacher/student/id',
    method:'delete',
    params:{
      id:id
    }
  })
}
//重置密码
export const resetPasswordAPI=(id)=>{
  return request({
    url:'/teacher/student/update',
    method:'put',
    params:{
      id:id
    }
  })
}